package jiggle;

public class InverseSquareVertexVertexRepulsionLaw extends VertexVertexRepulsionLaw {

	public InverseSquareVertexVertexRepulsionLaw (Graph g, double k) {
		super (g, k);
	}

	@Override
    public double pairwiseWeights(double pref, double curr) {
        curr = Math.max(curr, pref/2);		// some sensible amount	
		return cube(pref / curr) * -1;
	}
}